<template>
    <el-row>
        <el-col :span="8">
            <el-form-item label="检测批号">
                <el-select v-model="fruit">
                    <el-option value="苹果">苹果</el-option>
                    <el-option value="香蕉">香蕉</el-option>
                    <el-option value="苹果2">苹果2</el-option>
                    <el-option value="苹果3">苹果3</el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :span="8">
            <el-form-item label="样品性质">
                <el-input v-model="sampleType"></el-input>
            </el-form-item>
        </el-col>
        <el-col :span="8">
            <el-form-item label="检测项目">
                <el-input></el-input>
            </el-form-item>
        </el-col>
    </el-row>
</template>

<script>
    export default {
        name: "MyForm",
        data() {
            return {
                fruit: '',
                sampleType: ''
            }
        },
        methods: {
            getMyData() {
                return {
                    fruit: this.fruit,
                    sampleType: this.sampleType
                }
            }
        }
    }
</script>
